<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Map常量管理</title>
	<%@ include file="/common/meta.jsp" %>
    <%@ include file="/common/public_input.jsp" %>
    <%@ include file="/common/public.jsp" %>

    <script type="text/javascript" src="${ctx}/js/validate/jquery.validate.js"></script>
    <script type="text/javascript" src="${ctx}/js/validate/messages_cn.js"></script>
	<script>
		$(document).ready(function() {

           /* $("#inputForm").validate({
                onsubmit: true,
                rules: {
                    name:{
                        required:true,
                        maxlength:50
                    },
                    code:{
                        required:true,
                        maxlength:100
                    }
                },
                messages: {
                    name:{
                        remote:'名称已存在'
                    },
                    code:{
                        remote:'编码已存在'
                    }
                }
            });*/
		});
	</script>
</head>

<body>
<div class="div-tabs-nav">
        <ul class="ui-tabs-nav">
            <li class="ui-tabs-selected">房间</li>
        </ul>
</div>

<div class="ui-tabs-panel">
	<form id="inputForm" action="${ctx}/house/house/save.action" method="post">
        <div id="message"><s:actionmessage theme="custom" cssClass="success"/></div>
        <div>房间<s:if test="id!=null">信息</s:if><s:else>创建</s:else></div>
		<table class="noborder">
		<s:if test="id!=null">
            <tr>
                <td>ID:</td>
                <td>
                    <s:textfield name="id" id="id" size="40" readonly="true"/>
                </td>
            </tr>
            </s:if>
            <tr>
                <td>名称:</td>
                <td>
                    <s:textfield name="name" id="name" size="40" maxLength="50"/>
                </td>
            </tr>
            <tr>
                <td>直播频道类型:</td>
                <td>
                    <s:select list="@com.iqiyi.pps.epg.core.model.house.House@TYPE_ID_MAP" name="typeId" id="typeId" />
                </td>
            </tr>
            <tr>
                <td>码率支持:</td>
                <td>
                    <s:select list="@com.iqiyi.pps.epg.core.model.house.House@BITRATE_MAP" name="bitrateSupport" id="bitrateSupport" />
                </td>
            </tr>
            <tr>
                <td>推荐位:</td>
                <td>
                    <s:select list="@com.iqiyi.pps.epg.core.model.house.House@RECOMMEND_MAP" name="recommend" id="recommend" />
                </td>
            </tr>
            <tr>
                <td>状态:</td>
                <td>
                    <s:radio id="status" name="status" list="@com.iqiyi.pps.epg.core.model.house.House@STATUS_MAP" />
                </td>
            </tr>
            <tr>
                <td>用户id:</td>
                <td>
                    <s:textfield name="userId" id="userId" size="40" maxLength="100"/>
                </td>
            </tr>
            <tr>
                <td>是否允许直播:</td>
                <td>
                    <s:radio id="live" name="live" list="@com.iqiyi.pps.epg.core.model.house.House@BASE_STATUS_MAP" />
                </td>
            </tr>
            <tr>
                <td>是否允许直播转点播:</td>
                <td>
                    <s:radio id="vod" name="vod" list="@com.iqiyi.pps.epg.core.model.house.House@BASE_STATUS_MAP" />
                </td>
            </tr>
		</table>
         <div align="left">
                 <security:authorize ifAnyGranted="AUTH_MANAGER_AUTH,AUTH_ALL">
                     <input class="button" type="submit" value="提交"/>&nbsp;
                 </security:authorize>
                <input type="reset" class="input-button" value="重置"/>
          </div>
	</form>
</div>
</body>
</html>

